
<%--
  Created by IntelliJ IDEA.
  User: 79133
  Date: 2020/12/17
  Time: 17:29
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false"%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>table模块快速使用</title>
    <link rel="stylesheet" href="/layui/css/layui.css" media="all">
</head>
<body>

<table id="demo" lay-filter="test"></table>

<script src="../statics/lib/layui-v2.5.5/layui.js"></script>
<script>
    layui.use('table', function(){
        var table = layui.table;
        console.log(${serachName})
        //第一个实例
        table.render({
            elem: '#demo'
            ,height: 312
            ,url: 'queryHero' //数据接口
            ,method:'post'
            ,where:{steamid:"187709004"}
            ,page: false //开启分页

            ,cols: [[ //表头
                {field: 'match_id', title: 'ID', width:80, sort: true, fixed: 'left'}
                ,{field: 'string_start_time', title: '用户名', width:80},
                {field: 'string_start_time', title: '用户名', width:80}

            ]]
        });

    });
</script>
</body>
</html>